The Dreamweaver JavaScript API > Library and template functions > dom.applyTemplate()

 

dom.applyTemplate()

Availability

Dreamweaver 3.0

Description

Applies a template to the current document. If no argument is supplied, the Select Template dialog box appears. This function is valid only for the active document.

Arguments

{templateURL}, bMaintainLink

templateURL is the path to a template in the current site, expressed as afile:// URL.
bMaintainLink is a Boolean indicating whether to maintain the link to the original template (true) or not (false).

Returns

Nothing.

Enabler

dom.canApplyTemplate()